<!DOCTYPE html>

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta http-equiv="Content-Language" content="zh-cn">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>我的订单_个人中心_华为商城</title>
<link rel="shortcut icon" href="__PUBLIC__/Ico/favicon.ico">
<link href="__PUBLIC__/Css/person/ec.core.css" rel="stylesheet" type="text/css">

<link href="__PUBLIC__/Css/person/main.css" rel="stylesheet" type="text/css">

<Js href="__JQUERY__"/>

<style>
#list-pager .current{
	border:1px solid #ccc;
	display:inline-block;
	width:7px;
	height:16px;
	font-weight:400;
	text-align:center;
	line-height:16px;
    font-size:12px;
	padding:0 5px;
	background:#D2D2D2;
	margin-left:5px;
	margin-right:5px;
}
#list-pager .num{
    border:1px solid #ccc;
	display:inline-block;
	width:7px;
	height:16px;
	font-weight:400;
	text-align:center;
	line-height:16px;
    font-size:12px;
	padding:0 5px;
	
	margin-left:5px;
	margin-right:5px;

}
#list-pager .prev{
    border:1px solid #ccc;
	display:inline-block;
	width:7px;
	height:16px;
	font-weight:400;
	text-align:center;
	line-height:16px;
    font-size:9px;
	padding-left:3px;
	padding-right:5px;
	
	margin-left:5px;
	margin-right:5px;
}

#list-pager .next{
    border:1px solid #ccc;
	display:inline-block;
	width:7px;
	height:16px;
	text-align:center;
	line-height:16px;
    font-size:9px;
	padding-left:3px;
	padding-right:5px;
	
	margin-left:5px;
	margin-right:5px;


}
</style>
</head>



<body>
<include file="Public/pinkheader"/>
<include file="Public/searchheader"/>

<include file="Public/naver"/>



<div class="hr-10"></div>
<div class="g">
	<!--面包屑 -->
	<div class="breadcrumb-area icon-breadcrumb fcn">您现在的位置：
		<a href="{:U('Index/index')}" title="首页">首页</a>&nbsp;&gt;&nbsp;
		<span id="personCenter"><a href="{:U('Member/index')}" title="个人中心">个人中心</a></span>
		<span id="pathPoint">&nbsp;&gt;&nbsp;</span>
		<b id="pathTitle">我的订单</b>
	</div>
</div>
<div class="hr-15"></div>

<div class="g">
    <div class="fr u-4-5"><!--栏目 -->
<div class="part-area clearfix">
    <div class="fl">
        <h3 class="myOrders-title"><span>我的订单</span></h3>        
   	 </div>
    </div>

<div class="hr-3"></div>
<!--我的订单 -->
<div class="myOrders-area">
	<div class="myOrders-title-area">
        <div class="h clearfix">
            <div class="fl">
                <div class="h-tab">
                    <ul>
                        
                    </ul>
                </div>
            </div>
        </div>
        <div class="b">
            <table border="0" cellpadding="0" cellspacing="0" id="order-list-head">
                <thead>
                    <tr>
                        <th>商品及订单号</th>
                        <th class="tr-span-3">单价<em>/元</em></th>
                        <th class="tr-span-2">数量</th>
                        <th class="tr-span-4">实付款<em>/元</em></th>
                        <th class="tr-span-4 operate">订单状态及操作</th>
                    </tr>
                </thead>
            </table>
        </div>
    </div>
    <div class="hr-2"></div>
    <!-------------------以上为订单头部---------------------------------->
    <div id="myOrders-list-content">
        <div class="myOrders-list">
    
    	
    	
    
    	
    	<!--我的订单-订单-套餐 -->
	 <volist name="list" id="vo">
    	<div class="myOrders-pro-area">
        	<div class="h clearfix">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                        <tr>
                            <td class="tal">
                            	订单编号：<a href="javascript:void(0)" title="{$vo.order_no}">{$vo.order_no}</a>
                            	&nbsp;&nbsp;&nbsp;&nbsp;
                            	生成时间：{$vo.order_time|date='Y-m-d H:i:s',###}
								&nbsp;&nbsp;&nbsp;&nbsp;
								
                            </td>
                            <td class="tr-span-4">
								<em>
								   {$vo.order_status}
								</em>
							</td>
                        </tr>
                	</tbody>
                </table>  
            </div>
            <div class="b">
            	<table border="0" cellpadding="0" cellspacing="0">
                    <tbody>

						
						
                        <!-- 组合套餐列表 -->

						<!-- 普通商品列表 -->
						<volist name="vo['goods']" id='goods'>
                         <tr>
                            <td class="tal">
                                <div class="pro-area clearfix">
                                    <p class="p-img">
                                    	<a title="{$goods.goods_name}" href="{:U('Product/index',array('g'=>$goods['goods_id']))}" target="_blank">
                                    	<img alt="{$goods['goods_name']}" src="__UPLOAD__{$goods.goods_pic}">
                                        
                                    	</a>
                                    </p>
                                    <p class="p-name">
                                    	<a title="{$goods_name}" target="_blank" href="{:U('Product/index',array('g'=>$goods['goods_id']))}">{$goods.goods_name}</a>
                                    </p>
                                    
                                </div>
                            </td>

                            <td class="tr-span-3">{$goods.goods_price}</td>                       

                            <td class="tr-span-2">{$goods.goods_num}</td>


								<td rowspan="2" class="tr-span-4">
									<p>¥{$vo.order_total_money}</p>
								</td>
                            
							
								<td rowspan="2" class="tr-span-4 operate">
									  <if condition="$vo['order_status'] eq '未付款'">
								   <a href="{:U('OrderPayment/index',array('order_id'=>$vo['order_id']))}">去付款</a>
								   
								        <elseif condition="$vo['order_status'] eq '已付款'" />
										    正在发货中
										<elseif condition="$vo['order_status'] eq '已发货'" />
										
										   <input type="hidden" value="{$vo.order_id}"/>
									       <a href="javascript:void(0);" class="recOreder">去收货</a>
										     
										<elseif condition="$vo['order_status'] eq '已收货'"  />
										   <input type="hidden" value="{$vo.order_id}"/>
										    <a href="{:U('OrderCenter/comment',array('order_id'=>$vo['order_id']))}" >去评价</a>
										<elseif condition="$vo['order_status'] eq '已评论'" />
										       交易完成
									    <else/>
										</if>
										
								</td>
							
						

                        </tr>
                       
                        </volist>
                        
                        
                        
					   <!-- 普通商品列表 end -->
                    </tbody>
                </table>
            </div>
        </div>
		 </volist>
		 
		
		
		
		
        </div>
        
    </div>
<script type="text/javascript">
   $(function(){
         //收货的ajax处理
        $(".recOreder").click(function(){
		    var order_id=$(this).prev('input').val();
			var value=confirm("你确定要收货吗?");
			
			if(value){
			     $.ajax({
				     url:"{:U('OrderCenter/receOrder')}",
					 type:'post',
					 data:{
					     'order_id':order_id,
					 },
					 success:function(responseText,status,xhr){
					     if(status=='success'){
						      if(responseText==1){
							     window.location.reload();
								 alert("收货成功!");
							  }else{
							     alert("收货失败");
							  
							  }
						 }else{
						    alert("收货失败");
						 
						 }
					 
					 
					 
					 },
					 error:function(){
					      alert("收货失败");
					 },
					 timeout:60*1000,
				 
				 
				 
				 
				 
				 
				 
				 });
			 
			
			
			
			
			
			
			}
			
			
		
		
		
		
		
		});
   
   
   
   
   });



</script>
    <div class="hr-5"></div>
    <!--分页--------- -->
    <div class="pager" id="list-pager">
	   <ul>
	       {$show}
		</ul>
	 </div>
    
</div>
<input type="hidden" id="colid" value="0">




</div>
	<div class="fl u-1-5">
    	

<!--左边菜单 -->
<div class="mc-menu-area">
	<div class="h"><a href="{:U('Member/index')}" class="button-go-mc" title="个人中心"><span>个人中心</span></a></div>
    <div class="b">
       <ul>
        	<li>
        	<h3>订单中心</h3>
            	<ol>
                	<li id="li-order" class='current'><a href="{:U('OrderCenter/index')}" title="我的订单"><span>我的订单</span></a></li>
                   
                </ol>
            </li>
            <li>
            <h3>个人中心</h3>
            	<ol>
                	<li id="li-account"><a href="{:U('PersonCenter/index')}" title="个人信息"><span>个人信息</span></a></li>
                    <li id="li-security"><a href="{:U('PersonCenter/pwd')}" title="密码管理"><span>密码管理</span></a></li>
                    <li id="li-balance" ><a href="{:U('PersonCenter/account')}" title="账户余额"><span>账户余额</span></a></li>
                    <li id="li-myAddress"><a href="{:U('PersonCenter/address')}" title="收货信息"><span>收货信息</span></a></li>
					<li id="li-enterprise" class="hide"></li>
                </ol>
            </li>
            <li>
            <h3>社区中心</h3>
            	<ol>
                	<li id="li-prdRemark"><a href="{:U('Comment/index')}" title="商品评价"><span>商品评价</span></a></li>
                </ol>
            </li>
        </ul>
    </div>
    <div class="f"></div>
</div>
    </div>
</div>
<div class="hr-60"></div>
<include file="Public/footer"/>
</body></html>